import React, {Component} from 'react';
import {
    Text,
    View,
    StyleSheet, 
    RefreshControl,
    TouchableOpacity,
    DeviceEventEmitter,
} from 'react-native';
import NavigationBar from '../components/NavigationBar';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import ViewUtils from '../utils/ViewUtils';
import DeviceUtils from '../utils/DeviceUtils';
import actioncoll from '../actions';


class mine extends Component {
    
    constructor(props){
        super(props);

    }

    componentDidMount(){
        this.props.getOrgList();
    }

    componentWillUnmount(){

    }


    render() {
        return(
            <View style={styles.container}>
                <NavigationBar title="我的" />
                <Text>mine</Text>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    container:{
        flex: 1,
    },
})

export default connect(
	state => ({
        orgList: state.orgReducer.orgList,
	}),
	dispatch => ({
		getOrgList: () => dispatch(actioncoll.getOrgList()),
	})
)(mine);